package com.mystudy.springcloud.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_account")
public class Account implements Serializable {
	private static final long serialVersionUID = 622331653075111996L;
	/**
	 * id
	 */
	@TableId(value = "id")
	private Long id;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 总额度
	 */
	private Double total;
	/**
	 * 已用余额
	 */
	private Double used;
	/**
	 * 剩余可用额度
	 */
	private Double residue;
}